package br.pb.sistcomp.util;

import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;

/**
 *
 * @author Jefferson
 */

public class MessagesUtil {

    public static void addInfoMsg(String msg){
        FacesContext.getCurrentInstance().addMessage("info", new FacesMessage(FacesMessage.SEVERITY_INFO, msg, msg));
    }

    public static void addErroMsg(String msg){
        FacesContext.getCurrentInstance().addMessage("erro", new FacesMessage(FacesMessage.SEVERITY_INFO, msg, msg));
    }

}